<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>QJson: qjson.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QJson
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qjson.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef QJSON_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define QJSON_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;QtCore/qglobal.h&gt;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;QObject&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;QNetworkAccessManager&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;QUrl&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;QNetworkReply&gt;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="keyword">class </span>QIODevice;
<a name="l00012"></a>00012 <span class="keyword">class </span>QVariant;
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="keyword">class </span><a class="code" href="class_q_json_private.html">QJsonPrivate</a>;
<a name="l00015"></a>00015 
<a name="l00019"></a><a class="code" href="class_q_json.html">00019</a> <span class="keyword">class </span><a class="code" href="class_q_json.html" title="Main class used to convert JSON data to QVariant objects.">QJson</a> : <span class="keyword">public</span> QObject
<a name="l00020"></a>00020 {
<a name="l00021"></a>00021     Q_OBJECT
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="keyword">public</span>:
<a name="l00024"></a>00024   <span class="keyword">explicit</span> <a class="code" href="class_q_json.html" title="Main class used to convert JSON data to QVariant objects.">QJson</a>(QObject *parent=0);
<a name="l00025"></a>00025   ~<a class="code" href="class_q_json.html" title="Main class used to convert JSON data to QVariant objects.">QJson</a>();
<a name="l00026"></a>00026 
<a name="l00033"></a>00033   QVariant <a class="code" href="class_q_json.html#a9bc6ed3d63283e1c654f42f1906468b1">parse</a>(QIODevice* io, <span class="keywordtype">bool</span>* ok = 0);
<a name="l00034"></a>00034 
<a name="l00043"></a>00043   Q_INVOKABLE QVariant <a class="code" href="class_q_json.html#a9bc6ed3d63283e1c654f42f1906468b1">parse</a>(<span class="keyword">const</span> QByteArray&amp; jsonData, <span class="keywordtype">bool</span>* ok = 0);
<a name="l00044"></a>00044 
<a name="l00053"></a>00053   Q_INVOKABLE QVariant <a class="code" href="class_q_json.html#a9bc6ed3d63283e1c654f42f1906468b1">parse</a> (<span class="keyword">const</span> QUrl url, <span class="keywordtype">bool</span>* ok = 0);
<a name="l00054"></a>00054 
<a name="l00060"></a>00060   QString <a class="code" href="class_q_json.html#a3386d3a47cf4ca73224aad37e23d28a5">errorString</a>() <span class="keyword">const</span>;
<a name="l00061"></a>00061 
<a name="l00067"></a>00067   <span class="keywordtype">int</span> <a class="code" href="class_q_json.html#a62611c70f740caf8cdddd71dcf85ebf0">errorLine</a>() <span class="keyword">const</span>;
<a name="l00068"></a>00068 
<a name="l00069"></a>00069 signals:
<a name="l00070"></a>00070   <span class="keywordtype">void</span> error(<span class="keywordtype">int</span> line, QString message);
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 <span class="keyword">private</span>:
<a name="l00073"></a>00073 
<a name="l00074"></a>00074   QNetworkAccessManager *m_networkManager;
<a name="l00075"></a>00075 
<a name="l00076"></a>00076   Q_DISABLE_COPY(<a class="code" href="class_q_json.html" title="Main class used to convert JSON data to QVariant objects.">QJson</a>)
<a name="l00077"></a>00077   <a class="code" href="class_q_json_private.html">QJsonPrivate</a>* <span class="keyword">const</span> d;
<a name="l00078"></a>00078 };
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 <span class="preprocessor">#endif // QJSON_H</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Mon Apr 9 2012 23:57:46 for QJson by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
